﻿<local:DocumentBase x:Class="WPFExcelReport.JLTAB50BS"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"                     
                    FontSize="16"
                    Loaded="Window_Loaded" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="105">
    <local:DocumentBase.Resources>
        <ucd:PNumConverter  x:Key="pnum"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2">
            <WrapPanel Height="34">
                <Label Content="日期" Height="26" HorizontalAlignment="Left" Margin="5,5,0,0" Name="label1" VerticalAlignment="Top" Width="40" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,5,0,0" Name="FROM_DATE" VerticalAlignment="Top" Panel.ZIndex="1"
                                    SelectedDateChanged ="FROM_DATE_SelectedDateChanged" Width="127" />
                <Label Content="到" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="label2" VerticalAlignment="Top" Width="33" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,5,0,0" Name="END_DATE" VerticalAlignment="Top" Panel.ZIndex="2"
                                    SelectedDateChanged ="END_DATE_SelectedDateChanged" Width="129" />
                <!--<Label Content="任务书" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="label3" VerticalAlignment="Top" Width="60" FontSize="16" />-->
                <!--<TextBox Name="txtCO" Width="159" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="WhiteSmoke" Panel.ZIndex="3"-->
                         <!--Text="" KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="8" FontSize="18" Foreground="#FF141111" Height="33" />-->
                <Button Content="查询" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="71" Panel.ZIndex="6"
                        Click="btnQuery_Click"/>
                <Button Content="导出" Height="33" Margin="10,0,0,0"  Name="btnEXCEL" Width="72" Panel.ZIndex="7"
                        Click="btnEXCEL_Click"/>
            </WrapPanel>
        </StackPanel>
        <DataGrid Grid.Row="1" Margin="0,1,0,0"    
                  FontSize="12"  
                              CanUserReorderColumns="True"  
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True" 
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding}" x:Name="MasterDg" >
            <DataGrid.Columns>
                <!--SELECT b.abkkdauftnr,a.abpneudat,a.abpneuben,a.abpart,TRIM(C.GSHANDLNR) AS ARTDESC,"-->
                    <!--+ "a.abpsollmenge5*0.01 as orderqty,a.abpzugkg*0.01 as alloqty-->
                <DataGridTextColumn Header="任务书号" Binding="{Binding ABKKDAUFTNR}" Width="Auto"/>
                <DataGridTextColumn Header="开单日期" Binding="{Binding ABPNEUDAT}" Width="Auto"/>
                <DataGridTextColumn Header="开单人" Binding="{Binding ABPNEUBEN}" Width="Auto"/>
                <DataGridTextColumn Header="纱线编号" Binding="{Binding ABPART}" Width="Auto"/>
                <DataGridTextColumn Header="纱名" Binding="{Binding ARTDESC}" Width="Auto"/>
                <DataGridTextColumn Header="订单数量" Binding="{Binding ORDERQTY}" Width="Auto"/>
                <DataGridTextColumn Header="留位数量" Binding="{Binding ALLOQTY}" Width="Auto"/>
                <DataGridTextColumn Header="补领原因" Binding="{Binding REMARK}" Width="Auto"/>
                <!--<DataGridTextColumn Header="色号" Binding="{Binding GABFARBE}" Width="Auto"/>-->
                <!--<DataGridTextColumn Header="染批" Binding="{Binding GPFBPART}" Width="Auto"/>-->
                <!--<DataGridTextColumn Header="批号/轴染信息" Binding="{Binding REMARK}" Width="Auto"/>-->
                <!--<DataGridTextColumn Header="系统LOT" Binding="{Binding GABPARTIE}" Width="Auto"/>-->
                <!--<DataGridTextColumn Header="变量" Binding="{Binding GABVAR}" Width="Auto"/>-->
            </DataGrid.Columns>
        </DataGrid  >        
    </Grid>
</local:DocumentBase>
